//
//  GlobalMacro.h
//  ReviewDemo
//
//  Created by 龙 on 2017/12/27.
//  Copyright © 2017年 long. All rights reserved.
//

#ifndef GlobalMacro_h
#define GlobalMacro_h

#define BUGTAG_APP_KEY @"dd38ab8f95bd129a058ad1cb1542faf7"




#define ScreenWidth [UIScreen mainScreen].bounds.size.width
#define ScreenHeight [UIScreen mainScreen].bounds.size.height

#define kResourceBundle [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"ExtraResource" ofType:@"bundle"]]


#define Is_IOS11 ([[UIDevice currentDevice].systemVersion floatValue] >= 11.0f)
#define Is_iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)// 是否是iPhone X

#define CUT_LINE_COLOR [[UIColor blackColor] colorWithAlphaComponent:0.08]//分割线颜色
#define COLOR_RGBA(r, g, b ,a) [UIColor colorWithRed:(r)/255.f green:(g)/255.f blue:(b)/255.f alpha:a]
#define COLOR_VALUE(rgbValue , a) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:a]
#define Color_Purple [UIColor colorWithRed:141.0 / 255 green:31.0/ 255 blue:203.0/ 255 alpha:1]


#ifdef DEBUG
#define LLog(format, ...) printf("class: <%p %s:(%d) > method: %s \n%s\n", self, [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, __PRETTY_FUNCTION__, [[NSString stringWithFormat:(format), ##__VA_ARGS__] UTF8String] )
#else
#define LLog(format, ...)
#endif


#endif /* GlobalMacro_h */
